package com.stylefeng.guns.modular.pay.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.pay.dao.AccountMapper;
import com.stylefeng.guns.modular.pay.model.Account;
import com.stylefeng.guns.modular.pay.service.IAccountService;

/**
 * <p>
 * 账户信息 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-17
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements IAccountService {
	@Autowired
	private AccountMapper accountMapper;
	
	@Override
	public List<Account> list(Page<Account> page, Account account) {
		// TODO Auto-generated method stub
		return accountMapper.list(page,account);
	}

	@Override
	public Account findByMchNo(String mchNo) {
		Account account = new Account();
		account.setMchNo(mchNo);
		return accountMapper.selectOne(account);
	}

}
